package com.cmc.cloud.cmclink.doc.vo.vgm;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author lzp
 */
@Schema(description = "管理后台 - VMG信息创建 Request VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Valid
public class VgmImportAllReqVO {

    @Schema(description = "导入的数据信息")
    @NotEmpty(message = "{VgmImportAllReqVO.vgmImportReqVoList.notEmpty}")
    @Valid
    private List<VgmImportReqVO> vgmImportReqVoList;

    @Schema(description = "港口")
    @NotBlank(message = "{vgmCreateReqVO.currentPort.notBlank}")
    private String currentPort;

    @Schema(description = "船名")
    @NotBlank(message = "{vgmCreateReqVO.vesselCode.notBlank}")
    private String vesselCode;

    @Schema(description = "航次")
    @NotBlank(message = "{vgmCreateReqVO.voyage.notBlank}")
    private String voyage;
}
